home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / destroytheworld.swf / scripts / DefineButton2_786 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2006-06-13  |  990 b   |  56 lines

  1. on(release){
  2.    tellTarget("_root.theMenu")
  3.    {
  4.       gotoAndStop(1);
  5.    }
  6.    tellTarget("_root.theControls")
  7.    {
  8.       gotoAndStop(1);
  9.    }
  10.    _root.gamePlaying = false;
  11.    tellTarget("_root.game.ufo")
  12.    {
  13.       stop();
  14.    }
  15.    tellTarget("_root.game.ufo.light")
  16.    {
  17.       stop();
  18.    }
  19.    nextFrame();
  20.    if(_root.musicVolume == "off")
  21.    {
  22.       tellTarget("musicPointer")
  23.       {
  24.          gotoAndStop("off");
  25.       }
  26.    }
  27.    if(_root.musicVolume == "low")
  28.    {
  29.       tellTarget("musicPointer")
  30.       {
  31.          gotoAndStop("low");
  32.       }
  33.    }
  34.    if(_root.musicVolume == "medium")
  35.    {
  36.       tellTarget("musicPointer")
  37.       {
  38.          gotoAndStop("medium");
  39.       }
  40.    }
  41.    if(_root.musicVolume == "default")
  42.    {
  43.       tellTarget("musicPointer")
  44.       {
  45.          gotoAndStop("default");
  46.       }
  47.    }
  48.    if(_root.musicVolume == "high")
  49.    {
  50.       tellTarget("musicPointer")
  51.       {
  52.          gotoAndStop("high");
  53.       }
  54.    }
  55. }
  56.